package es.mfp.practicos.util;

import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	private static final Format df = new SimpleDateFormat("dd/MM/yyyy");

	static {
		// df.format(date)
	}

	public static String formatDate(Date date) {
		if (date == null) {
			return "";
		}
		return df.format(date);
	}

	public static void main(String[] args) {
		System.out.println(formatDate(new Date()));
	}

}
